package cn.sh.yhk.configure.enums;

public enum UserState {
    ACTIVITY_ENABLED("Enabled", "激活"), ACTIVITY_DISABLED("Disabled", "禁用");

    private String _value;
    private String _name;

    private UserState(String value, String name) {
        _value = value;
        _name = name;
    }

    public static String getValue(String _value) {
        String str = "";
        for (UserState activity : UserState.values()) {
            if (activity.value().equalsIgnoreCase(_value)) {
                str = activity.value();
                break;
            }
        }
        return str;
    }

    public String value() {
        return _value;
    }

    public String getName() {
        return _name;
    }
}
